/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import BO.Iter.BoDeBO;
import DAO.Iter.BoDeDAO;
import TableModel.Bode;
import java.util.List;


/**
 *
 * @author vt
 */
public class BoDeBOImpl implements BoDeBO {
  private BoDeDAO bodeDao;

    public BoDeDAO getBodeDao() {
        return bodeDao;
    }

    public void setBodeDao(BoDeDAO bodeDao) {
        this.bodeDao = bodeDao;
    }
    @Override
    public List<Bode> findAllBoDe() {
      return  bodeDao.findAllBoDe();
    }

    @Override
    public Bode findBoDe(String id) {
        return bodeDao.findBoDe(id);
    }

    @Override
    public Bode findBoDe(String userName, String paawrod) {
       return  bodeDao.findBoDe(userName, paawrod);
    }

    @Override
    public void update(Bode id) {
        bodeDao.update(id);
    }

    @Override
    public void add(Bode id) {
        bodeDao.add(id);
    }

    @Override
    public void delete(Bode id) {
        bodeDao.delete(id);
    }
    
}
